package cn.cyxcoder.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "rocketmq")
public class RocketMQConfig {
    private String nameServer;
    private Producer producer;
    private Consumer consumer;

    @Data
    public static class Producer {
        private String group;
    }

    @Data
    public static class Consumer {
        private String group;
    }
} 